package com.demo2.dao;

import com.demo2.entity.ProductImage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ProductImageMapper {

    @Select("select * from productimage where productimage_id = #{id}")
    public List<ProductImage> GetProductImage(Integer id);

    @Select("select * from productimage where productimage_product_id = #{id}")
    public List<ProductImage> GetProductProductImage(Integer id);
}
